#include "options.h"
#include <dsp.h>

#define  MAX_MIXERS	40

typedef struct tagMixerSetup
{
	unsigned int Source		 		: 5;	// Either APCommand[Source] or pwIn[Source]
	unsigned int Dest		 		: 5;	// pwOut[Dest]
	unsigned int SourceIsInput		: 1;	// Use APCommand or pwIn
	unsigned int Unused				: 5;	// Unused bits
} MixerSetup;


typedef struct tagMixerSettings
{
	float 		 PosCoeff;
	float 		 NegCoeff;
	unsigned int Source				: 5	;	// Either APCommand[Source] or pwIn[Source]
	unsigned int Destination		: 5	;	// pwOut[Dest]
	unsigned int SourceIsInput		: 1 ;	// Use APCommand or pwIn
	unsigned int ForceValue			: 1 ;	// The destination is forced to the mixer value
	unsigned int Unused				: 5 ;	// Unused bits
} MixerSettings;


extern const unsigned int MixerCount;

/*
typedef struct tagCHANNEL_LIMIT
{
	unsigned int highLimit;
	unsigned int lowLimit;
} CHANNEL_LIMIT;

typedef CHANNEL_LIMITS CHANNEL_LIMIT[MAX_OUTPUTS+1];

extern const CHANNEL_LIMITS;
*/